import requests

from common.assert_tpshop_tools import ass_tpshop
def tp_login(data,status,msg):
    session = requests.session()
    session.get(url="http://hmshop-test.itheima.net/index.php?m=Home&c=User&a=verify&r=0.8590376049611856")

    resp =session.post(url="http://hmshop-test.itheima.net/index.php?m=Home&c=User&a=do_login&t=0.8074701558766086",
                  data=data)
    ass_tpshop(resp,status,msg)








# assert 200 == resp.status_code
# assert 1 == resp.json().get("status")
#
# assert "成功" in resp.json().get("msg")